Bug 568576 – [PATCH] undefined operation fix
authorMartin Nordholts <martinn@src.gnome.org>
Sat, 4 Apr 2009 19:46:35 +0000 (19:46 +0000)
committerMartin Nordholts <martinn@src.gnome.org>
Sat, 4 Apr 2009 19:46:35 +0000 (19:46 +0000)
Patch from Stanislav Brabec

svn path=/trunk/; revision=415

ChangeLog
babl/babl-fish-stats.c
tests/babl_fish_path_fitness.c

index debf44a17c64efd3019ae585e04b2fc923c5cae1..af0850ae5761d9cc74bcd10deb322c3a5a4d8593 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-04-04  Martin Nordholts  <martinn@svn.gnome.org>
+
+       Bug 568576 – [PATCH] undefined operation fix
+
+       Patch from Stanislav Brabec
+
+       * babl/babl-fish-stats.c
+       * tests/babl_fish_path_fitness.c
+
 2009-04-04  Martin Nordholts  <martinn@svn.gnome.org>
 
        * AUTHORS: Update for 0.1.0 release.
 
 2009-04-04  Martin Nordholts  <martinn@svn.gnome.org>
 
-       * babl/Makefile.am: babl/Makefile.am: Add forgotten header files
-       that needs to be distributed with a release.
+       * babl/Makefile.am: Add forgotten header files that needs to be
+       distributed with a release.
 
 2009-04-04  Martin Nordholts  <martinn@svn.gnome.org>
 
-       * Makefile.am: Makefile.am: We don't have a COPYING.LESSER anymore
+       * Makefile.am: We don't have a COPYING.LESSER anymore
 
 2009-04-03  Martin Nordholts  <martinn@svn.gnome.org>
 
index ec19f5fcaaf5f7edb90faee267931359cb92ddba..5348303d03635aefc6cd9bf4b1b6ee424674cb6f 100644 (file)
@@ -36,7 +36,8 @@ table_destination_each (Babl *babl,
   Babl *source      = userdata;
   Babl *destination = babl;
 
-  if ((qux++) % babl_formats_count () == qux / babl_formats_count ())
+  qux++;
+  if (qux % babl_formats_count () == qux / babl_formats_count ())
     fprintf (output_file, "<td class='cell'>&nbsp;</td>");
   else
     {
index d5f5c4d78845076760d52b36b417de61de198bc9..8480fc028bb324e492e0822a845a8c107c4e149e 100644 (file)
@@ -38,7 +38,8 @@ static int destination_each (Babl *babl,
   Babl *source      = userdata;
   Babl *destination = babl;
 
-  if ((qux++) % babl_formats_count () == qux / babl_formats_count ())
+  qux++;
+  if (qux % babl_formats_count () == qux / babl_formats_count ())
     printf (" ");
   else
     {